export function TMapGeocoder () {
  // if (window.AMap) return Promise.resolve()
  return new Promise(function (resolve, reject) {
    var script = document.createElement('script')
    script.type = 'text/javascript'
    script.charset = 'utf-8'
    script.src =
      'https://map.qq.com/api/gljs?v=1.exp&libraries=service&key=EEABZ-HDSCK-FXHJV-AYGBH-3OV2T-A6BIW'
    console.log(script)
    script.onerror = e => reject(e)
    script.onload = () => resolve()
    document.head.appendChild(script)
  })
}
